home *** CD-ROM | disk | FTP | other *** search
- LIBEXC(3F) Last changed: 1-8-99
-
-
- NNAAMMEE
- ttrraaccee__bbaacckk__ssttaacckk, ttrraaccee__bbaacckk__ssttaacckk__aanndd__pprriinntt - Calls stack trace
- library for Fortran applications
-
- SSYYNNOOPPSSIISS
- iinntteeggeerr**44 ttrraaccee__bbaacckk__ssttaacckk
- iinntteeggeerr**44 ii
- iinntteeggeerr**88 aaddddrrss((110000))
- cchhaarraacctteerr**110000 nnaammeess((110000))
- ii == ttrraaccee__bbaacckk__ssttaacckk((00,, aaddddrrss,, nnaammeess,, 110000,, 110000))
-
- ccaallll ttrraaccee__bbaacckk__ssttaacckk__aanndd__pprriinntt(())
-
- iinntteeggeerr**88 aaddddrr,, eennttrryy
- cchhaarraacctteerr**110000 nnaammee
- ccaallll eexxcc__ddllaaddddrr((aaddddrr,, nnaammee,, 110000,, eennttrryy))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems
-
- DDEESSCCRRIIPPTTIIOONN
- The lliibbeexxcc library provides the functionality for user-level call
- stack unwind.
-
- ttrraaccee__bbaacckk__ssttaacckk is used to unwind the call stack at the time it is
- called. The first argument sets the number of stack frames to be
- unwound. If it is set to zero, the unwind continues up to mmaaiinn or up
- to __nnsspprroocc//__ffoorrkk for child processes. The second argument is the
- array that contains the addresses of the callers in the stack after
- the unwind is completed. The third argument contains the names of the
- functions in the stack after the unwind is completed. If this
- argument is set to NULL, it disables procedure name extraction. The
- fourth argument is the size of the array of callers and the fifth
- argument is the size of the procedure name strings.
-
- ttrraaccee__bbaacckk__ssttaacckk__aanndd__pprriinntt unwinds the call stack (up to mmaaiinn or up to
- __nnsspprroocc//__ffoorrkk for child processes) and prints it to the standard
- output. First, the pid of the process and the number of frames in the
- stack are printed and then, for each frame, the program counter and
- the function name are printed.
-
- eexxcc__ddllaaddddrr maps a text address to the procedure that includes it. The
- first argument is the address to be mapped. The second argument will
- contain the procedure name upon return, and the third argument is the
- size of the procedure name string. The fourth argument will contain
- the procedure entry address upon return.
-
- NNOOTTEESS
- Executables complying to the O32 ABI must be explicitly linked with
- lliibbeexxcc.
-
- EENNVVIIRROONNMMEENNTT VVAARRIIAABBLLEESS
- __LLIIBBEEXXCC__CCAACCHHEE Enables dwarf information caching (N32/N64 ABIs
- only).
-
- __LLIIBBEEXXCC__NNOO__PPRROOCC__NNAAMMEE Disables procedure name extraction (N32/N64 ABIs
- only).
-
- __LLIIBBEEXXCC__IINNIITT Forces some dwarf information loading at the
- time of the first call to the lliibbeexxcc functions
- (N32/N64 ABIs only). Alternatively, a call to
- eexxcc__iinniitt(()) would have the same effect of forced
- pre-initialization.
-
- DDIIAAGGNNOOSSTTIICCSS
- Upon successful completion, both functions return the number of call
- stack frames that were unwound. In the event of failure, a zero value
- is returned.
-
- SSEEEE AALLSSOO
- ssppeeeeddsshhoopp(1), lliibbeexxcc(3)
-
- This man page is available only online.
-